package com.lcb.rabbitmq.service;

import com.lcb.rabbitmq.base.BaseResponse;
import com.lcb.rabbitmq.entity.MsgLog;
import org.springframework.web.bind.annotation.*;

/****
 * @Author:lcb
 * @Description:MsgLog业务层接口
 * @Date: 2021-01-27 10:00:03
 *****/
public interface MsgLogService {

    /***
     * MsgLog多条件分页查询
     * @param msgLog
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/findMsgLogList/{page}/{size}")
    BaseResponse findMsgLogList(@RequestBody MsgLog msgLog, @PathVariable(value = "page") int page, @PathVariable(value = "size") int size);

    /***
     * 删除MsgLog
     * @param ids
     */
    @DeleteMapping("/deleteMsgLogById/{ids}")
    BaseResponse deleteMsgLogById(@PathVariable(value = "ids") String ids);

    /***
     * 修改MsgLog数据
     * @param msgLog
     */
    @PutMapping("/updateMsgLog")
    BaseResponse updateMsgLog(@RequestBody MsgLog msgLog);

    /***
     * 新增MsgLog
     * @param msgLog
     */
    @PostMapping("/addMsgLog")
    BaseResponse addMsgLog(@RequestBody MsgLog msgLog);

    /**
     * 根据ID查询MsgLog
     * @param id
     * @return
     */
    @GetMapping("/findMsgLogById/{id}")
    BaseResponse findMsgLogById(@PathVariable("id") String id);

    /***
     * 查询所有MsgLog
     * @return
     */
    @GetMapping("/findMsgLogAll")
    BaseResponse findMsgLogAll();
}
